<template>
  <div class="home">
    <van-search
      v-model="SearchVal"
      shape="round"
      placeholder="请输入搜索关键词"
      disabled
    />
    <p>这是首页</p>
  </div>
</template>

<script>
// @ is an alias to /src
//import HelloWorld from "@/components/HelloWorld.vue";

//import axios from "axios";
//import $http from "@/request/request"
import { GetHomeList } from "@/request/api";
export default {
  name: "Home",
  data() {
    return {
      SearchVal: "",
    };
  },
  components: {},
  created() {
    GetHomeList()
      .then((res) => {
        console.log(res);
      })
      .catch((err) => {
        console.log(err);
      });
  },
};
</script>
